import { defineComponent } from 'vue'
import { useRouter } from 'vue-router'

export default defineComponent({
  name: 'navComponent',
  setup(_, { attrs }) {
    const router = useRouter()

    return () => (
      <>
        <nav {...attrs}>
          <p>我是导航栏</p>
          <a-button type="primary" onClick={() => router.push('/ai-agent')}>
            去智能体
          </a-button>
        </nav>
      </>
    )
  },
})
